package com.cntcdt.api.service;

import java.util.List;

import com.cntcdt.api.db.model.DeviceMoveApplyModel;

public interface DeviceMoveApplyService {

	/**
	 * 根据用户id和申请类型分页查询
	 * @param userId
	 * @param type
	 * @param sortTime
	 * @return
	 */
	public List<DeviceMoveApplyModel> findBySortTime(int userId,int type,int sortTime);
	
	/**
	 * 根据用户id分页查询
	 * @param userId
	 * @param sortTime
	 * @return
	 */
	public List<DeviceMoveApplyModel> findBySortTime(int userId,int sortTime);
	
	/**
	 * 添加一条数据
	 * @param deviceMoveApply
	 * @return
	 */
	public int inertModel(DeviceMoveApplyModel deviceMoveApply);
	
	/**
	 * 根据id查询数据
	 * @param id
	 * @return
	 */
	public DeviceMoveApplyModel findById(int id);
	
	/**
	 * 更新一条数据
	 * @param deviceMoveApply
	 * @return
	 */
	public boolean updateModel(DeviceMoveApplyModel deviceMoveApply);
	
	/**
	 * 分页查询数据
	 * @param sortTime
	 * @return
	 */
	public List<DeviceMoveApplyModel> findBySortTime(int sortTime);
	
	/**
	 * 根据搜索内容查询数据
	 * @param searchContent
	 * @return
	 */
	public List<DeviceMoveApplyModel> findBySearchContent(String searchContent);
}
